OpenStack Grizzly - Configure Glance
2013/08/13 |
Install and Configure OpenStack Image Service (Glance).
|
|
[1] | Install Glance |
# install from EPEL OpenStack, EPEL [root@dlp ~]# yum --enablerepo=epel-openstack-grizzly,epel -y install openstack-glance
|
[2] | Configure Glance |
# set database ( set any password you like for "password" section ) [root@dlp ~]# openstack-db --init --service glance --password password Please enter the password for the 'root' MySQL user: # MySQL root password Verified connectivity to MySQL. Creating 'glance' database. Updating 'glance' database password in /etc/glance/glance-registry.conf /etc/glance/glance-api.conf Initializing the glance database, please wait... Complete!
[root@dlp ~]#
vi /etc/glance/glance-registry.conf # line 74: change like follows (value is just the one you added in Keystone) [keystone_authtoken] auth_host = 127.0.0.1 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = glance admin_password = servicepassword
# add at the last
flavor = keystone
[root@dlp ~]#
vi /etc/glance/glance-api.conf # line 340: change like follows [keystone_authtoken] auth_host = 127.0.0.1 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = glance admin_password = servicepassword
# add at the last
flavor = keystone
for service in api registry; do /etc/rc.d/init.d/openstack-glance-$service start chkconfig openstack-glance-$service on done Starting openstack-glance-api: [ OK ] Starting openstack-glance-registry: [ OK ] |